<?php

/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/3/25
 * Time: 17:54
 */
class Domain_Prized{
  /*
   * 获取抽奖次数
   */
  public function getPrizedTimes($userid){
    $Model_Prized=new Model_Prized();
    return $Model_Prized->getPrizedTimes($userid);
  }

  /*
   * 获取今天是否中奖
   */
  public function getTodayGift($userid){
    $Model_Prized=new Model_Prized();
    $gift= $Model_Prized->getTodayGift($userid);
    if($gift['count']>0)
      return true;
    return false;
  }
  /**
   * 插入抽奖纪录
   */
  public function InsertPrized($userid,$isPrized){
    $Model_Prized=new Model_Prized();
    $Model_Prized->InsertPrized($userid,$isPrized);
  }
}